/*!
\file AlgReverseDelete.h
\brief Contains declaration of AlgReverseDelete
*/

#ifndef ALGREVERSEDELETE_H
#define ALGREVERSEDELETE_H

#include<QList>
#include<Algorithm.h>
#include<ContainerElement.h>

/*!
\class AlgReverseDelete
\brief Implements reverse-delete algorithm.
*/

class AlgReverseDelete: public Algorithm{
public:
	AlgReverseDelete( Graph *g );
	//!< Constructor
	~AlgReverseDelete();
	//!< Destructor
	
	virtual void run();
	//!< Algorithm is executed here.
private:
	Container &c(){ return container(0); }
	bool existsOtherPath( const Edge &e );
};

#endif
